﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Configuration;

namespace BizTalkOneService
{
    public class Settings
    {
        public const string Namespace = "http://biztalkone.net";
        public const string EventLogSource = "BizTalkOneService";
        public bool BizTalkInstancesEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["BizTalkInstancesEnabled"]);
        public bool BizTalkPortsEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["BizTalkPortsEnabled"]);
        public bool BizTalkHostInstancesEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["BizTalkHostInstancesEnabled"]);
        public bool BizTalkOrchestrationsEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["BizTalkOrchestrationsEnabled"]);
        public bool EsbExceptionsEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["EsbExceptionDBEnabled"]);
        public bool FileCountEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["FilePathsEnabled"]);
        public bool DiskSpaceEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["DiskSpaceEnabled"]);
        public bool HostInstanceThrottlingEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["ThrottlingEnabled"]);
        public bool SqlJobEnabled = Convert.ToBoolean(ConfigurationManager.AppSettings["SqlJobEnabled"]);
        public int interval = Convert.ToInt32(ConfigurationManager.AppSettings["Interval"]) * 1000;

    }
}